﻿@model CmsContentTypeModel

@{
    ResFile = "cms_Content";
}


<div class="b-form b-form_bordered b-form_theme_white">
    <div class="b-form__head b-form__head-allbordered">

<fieldset class="b-form">
	<ol class="b-form__rows ul-reset g-clear">
        <li class="b-form__row g-clear">
        	@Html.LabelFor(p => p.ContentTypeName, _("Content Type Name"))
            @if (Model.IsNew)
            {
                @Html.TextBoxFor(p => p.ContentTypeName, new { @class = "text" })
                @Html.ValidationMessageFor(p => p.ContentTypeName)                 
            }
            else
            {
                <strong>@Model.ContentTypeName</strong>
                @Html.HiddenFor(m => m.ContentTypeName)
            }            
        </li>
        <li class="b-form__row g-clear  b-form__row_textarea">
            @Html.LabelFor(p => p.Description, _("Description"))
            @Html.TextAreaFor(p => p.Description, new { @class = "text textarea" })
        </li>
        <li class="b-form__row g-clear">        	
            @Html.LabelFor(p => p.IsSystemType, _("Hide from administration area"))
            @Html.CheckBoxFor(p => p.IsSystemType)
        </li>
        <li class="b-form__row g-clear">        	
            @Html.LabelFor(p => p.IsSupportedLogicalDeletion, _("Items support logical deletion"))
            @Html.CheckBoxFor(p => p.IsSupportedLogicalDeletion)
        </li>
        <li class="b-form__row g-clear">        	
            @Html.LabelFor(p => p.IsSupportedRevisions, _("Items support revisions"))
            @Html.CheckBoxFor(p => p.IsSupportedRevisions)
        </li>
        <li class="b-form__row g-clear">        	
            @Html.LabelFor(p => p.IsSupportedWorkflow, _("Items support workflow"))
            @Html.CheckBoxFor(p => p.IsSupportedWorkflow)
        </li>        
        <li class="b-form__row g-clear">        	
            @Html.LabelFor(p => p.IsSummaryEditable, _("Has summary"))
            @Html.CheckBoxFor(p => p.IsSummaryEditable)
        </li>        
        <li class="b-form__row g-clear">        	
            @Html.LabelFor(p => p.IsBodyEditable, _("Has content body"))
            @Html.CheckBoxFor(p => p.IsBodyEditable)
        </li>        

        @if (Model.IsNew)
        {
        <li>
            @Html.HiddenFor(p => p.Id)
        </li>
        }
        <li class="b-form__row g-clear">
            @{Html.RenderPartial("SiteAwarePlug", Model);}
        </li>
    </ol>
</fieldset>
    </div>
</div>